package org.pms.demo.webservice.service;

/**
 * Created by xusaike on 17/6/13.
 */
public interface ResourceVersionService {
    /**
     * 根据用户获得资源
     * @return
     */
    public String getResoureListByUser();

    /**
     * 获取所有资源
     * @return
     */
    public String getAllResoureList();

    /**
     * 添加资源
     * @param pid
     * @param name
     * @param permission
     * @param node_type
     * @param url
     * @param route
     * @return
     */
    public String addResource(int pid,String name,String permission,String node_type,String url,String route);

    /**
     * 修改资源
     * @param id
     * @param name
     * @param permission
     * @param node_type
     * @param url
     * @param route
     * @return
     */
    public String updateResource(int id,String name,String permission,String node_type,String url,String route,int available,int type);

    /**
     * 删除节点
     * @param id
     * @return
     */
    public String deleteResource(int id);

}
